<div class="post">
    <div class="title">
        <i class="icon12-title"></i>
        <?php echo $model->name ?></div>
    <?php
    foreach ($file as $key => $value) {
        ?>
        <div class="media">
            <div class="media-body">
                <h6 class="media-heading"><?php echo CHtml::link($value->name, array('/uploads/file/'.$value->file)) ?></h6>

            </div>
        </div>
    <?php } ?>

</div>


<?php
$this->widget('CLinkPager', array(
    'pages' => $pages,
))
?>